﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
using DAL;

namespace BLL
{
   public class LiveManage
    {
        //新增
        public static bool AddLive(Live lv)
        {
            return LiveService.AddLive(lv);
        }
        //删除
        public static bool DeleLive(int id)
        {
            return LiveService.DeleLive(id);
        }
        //删除指定游戏id内容
        public static bool DeleGmIdLive(int id)
        {
            return LiveService.DeleGmIdLive(id);
        }
        //修改指定全部内容
        public static bool UpdaLive(Live lv)
        {
            return LiveService.UpdaLive(lv);
        }
        //查询所有信息
        public static List<Live> SeleAllLive()
        {
            return LiveService.SeleAllLive();
        }
        //查指定定id信息
        public static List<Live> SeleIdLive(int id)
        {
            return LiveService.SeleIdLive(id);
        }

        //查指定定gmid信息
        public static List<Live> SeleGmIdLive(int id)
        {
            return LiveService.SeleGmIdLive(id);
        }

        //查指定游戏信息
        public static List<Live> SeleGameLive(string name)
        {
            return LiveService.SeleGameLive(name);
        }
    }
}
